/**
 * This is an example React Native app demonstrates ListViews, text input and
 * navigation between a few screens.
 * https://github.com/facebook/react-native
 *
 * @format
 */

import React, {Component} from 'react';
import {
  Easing,
  Animated, 
  StyleSheet,
  Text,
  View,
  NetInfo
} from 'react-native';
import {StackNavigator} from 'react-navigation';

import HomeScreenTabNavigator from './views/HomeScreenTabNavigator';
import CommonPage from "./views/CommonPage"

// let NetInfoChange=function handleFirstConnectivityChange(isConnected){}
// NetInfo.isConnected.addEventListener('change',NetInfoChange);
/**
 * Top-level navigator. Renders the application UI.
 */
const App = StackNavigator({
  Home: {
    screen: HomeScreenTabNavigator,
  },
  CommonPage:{
    screen:CommonPage
  }
},{
   headerMode: 'none',
   //headerStyle:{backgroundColor:"#ff5400"},
   //mode: 'modal',
   // navigationOptions: {
   //   gesturesEnabled: false,
   // },
   // transitionConfig: () => ({
   //   transitionSpec: {
   //     duration: 300,
   //     easing: Easing.out(Easing.poly(4)),
   //     timing: Animated.timing,
   //   },
   //   screenInterpolator: sceneProps => {
   //     const { layout, position, scene } = sceneProps;
   //     const { index } = scene;

   //     const height = layout.initHeight;
   //     const translateY = position.interpolate({
   //       inputRange: [index - 1, index, index + 1],
   //       outputRange: [height, 0, 0],
   //     });

   //     const opacity = position.interpolate({
   //       inputRange: [index - 1, index - 0.99, index],
   //       outputRange: [0, 1, 1],
   //     });

   //     return { opacity, transform: [{ translateY }] };
   //   },
   // }),
 });

export default App;
